﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Models.EquipmentTypes>" %>
<%@ Import Namespace="CRM.Models" %>

<% Html.DevExpress().ComboBox(settings =>
                                    {
                                        settings.Name = "EquipmentTypes";
                                        settings.CallbackRouteValues =
                                            new {Controller = "Test", Action = "EquipmentTypesPartial"};
                                        settings.Properties.ValueType = typeof (int);
                                        settings.Properties.TextField = "EquipmentTypeRu";
                                        settings.Properties.ValueField = "IdEquipmentType";
                                        settings.Properties.EnableCallbackMode = true;
                                        settings.Properties.CallbackPageSize = 20;
                                    }).BindList(DB.EquipmentTypes.ToList()).Render();%>